package com.tedu.lingmaagent.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;


@TableName(value = "appointment")
public class Appointment {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private String userName;
    private String idCard;
    private String department;
    private String date;
    private String time;
    private String doctorName;


    public Appointment() {
    }

    public Appointment(String date, String department, String doctorName, Long id, String idCard, String time, String userName) {
        this.date = date;
        this.department = department;
        this.doctorName = doctorName;
        this.id = id;
        this.idCard = idCard;
        this.time = time;
        this.userName = userName;
    }

    public Appointment setId(Long id) {
        this.id = id;
        return this;
    }
    public Appointment setUserName(String userName) {
        this.userName = userName;
        return this;
    }
    public Appointment setIdCard(String idCard) {
        this.idCard = idCard;
        return this;
    }
    public Appointment setDepartment(String department) {
        this.department = department;
        return this;
    }
    public Appointment setDate(String date) {
        this.date = date;
        return this;
    }
    public Appointment setTime(String time) {
        this.time = time;
        return this;
    }
    public Appointment setDoctorName(String doctorName) {
        this.doctorName = doctorName;
        return this;
    }
    public Long getId() {
        return id;
    }
    public String getUserName() {
        return userName;
    }
    public String getIdCard() {
        return idCard;
    }
   public String getDate() {
        return date;
    }
    public String getTime() {
        return time;
    }
    public String getDoctorName() {
        return doctorName;
    }
    public String getDepartment() {
        return department;
    }

    @Override
    public String toString() {
        return "Appointment{" +
                "date='" + date + '\'' +
                ", id=" + id +
                ", userName='" + userName + '\'' +
                ", idCard='" + idCard + '\'' +
                ", department='" + department + '\'' +
                ", time='" + time + '\'' +
                ", doctorName='" + doctorName + '\'' +
                '}';
    }
}